package com.yhh.Exceptions;

import lombok.Data;

/**
 * 指令异常
 */
@Data
public class InstructionException extends Exception{
    private String msg;
    /**
     * 出现异常的指令
     */
    private String instruction;
    public InstructionException(String msg,String instruction) {
        this.msg = msg;
        this.instruction = instruction;
    }
    @Override
    public String toString() {
        return "指令"+instruction+"出现了异常:"+msg;
    }
}

